//
//  FQIMainCell.swift
//  YQInformation
//
//  Created by Max on 2017/11/6.
//  Copyright © 2017年 com.vector. All rights reserved.
//

import UIKit
import SDWebImage
class FQIMainCell: FQITableViewCell {

    @IBOutlet weak var mainImage: UIButton!
    @IBOutlet weak var mainTitle: UILabel!
    @IBOutlet weak var mainApply: UILabel!
    @IBOutlet weak var mainSuccess: UILabel!
    @IBOutlet weak var MainLines: UILabel!
    @IBOutlet weak var mainType: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
       
        
    }
    
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    public func setWithModel(_ model:YQInformationData) {
       
        mainImage.sd_setImage(with: URL.init(string: model.iconUrl), for: UIControlState.normal, completed: nil);
        mainTitle.text = model.productName;
        mainSuccess.text = model.rate + "%"
        MainLines.text = model.minMoneyLoan + "~" + model.maxMoneyLoan
        mainType.text = model.des
        
        
        
    }

}
